package com.dragon.modules.yuegou.model.points;

import com.dragon.modules.yuegou.entity.points.SignRulesEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 签到规则表模型类
 * 
 * @author pbuilder generated
 * @date 2019-04-24 17:38:26
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class SignRules extends SignRulesEntity {

	@ApiModelProperty("是否签到")
	private Boolean isSignIn;

	public Boolean getSignIn() {
		return isSignIn;
	}

	public void setSignIn(Boolean signIn) {
		isSignIn = signIn;
	}

	/**
	 * 构造一个空签到规则表模型对象
	 */
	public SignRules(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个签到规则表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public SignRules(SignRulesEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个签到规则表模型对象
	 * 
	 * @param other 其它对象
	 */
	public SignRules(SignRules other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public SignRules id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 * @return 当前对象
	 */
    public SignRules busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public Integer getRulesDays() {
    	return rulesDays;
    }

    /**
	 * 设置连签天数
	 * 
	 * @param rulesDays 连签天数
	 * @return 当前对象
	 */
    public SignRules rulesDays(Integer rulesDays) {
    	this.rulesDays = rulesDays;
    	return this;
    }

	@Override
	public Integer getRulesPoints() {
    	return rulesPoints;
    }

    /**
	 * 设置连签积分
	 * 
	 * @param rulesPoints 连签积分
	 * @return 当前对象
	 */
    public SignRules rulesPoints(Integer rulesPoints) {
    	this.rulesPoints = rulesPoints;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public SignRules createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人
	 * 
	 * @param createdBy 创建人
	 * @return 当前对象
	 */
    public SignRules createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置修改时间
	 * 
	 * @param modifiedTime 修改时间
	 * @return 当前对象
	 */
    public SignRules modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置修改人
	 * 
	 * @param modifiedBy 修改人
	 * @return 当前对象
	 */
    public SignRules modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 * 
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 * @return 当前对象
	 */
    public SignRules del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置
	 * 
	 * @param delBy 
	 * @return 当前对象
	 */
    public SignRules delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置
	 * 
	 * @param delTime 
	 * @return 当前对象
	 */
    public SignRules delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }
}
